#include <bits/stdc++.h>
using namespace std;

int main() {
	unordered_set<char> hash;

	char c;
	while (cin >> c) {
		if (c >= 'a' && c <= 'z') {
			hash.insert(c);
		}
	}
	cout << hash.size() << endl;
	return 0;
}